import { defHttp } from '/@/utils/http/axios';

enum Api {
  houses = '/wyf/reports/houses/recent',
  tenants = '/wyf/reports/tenants/recent',
  total='/wyf/wyfTjZs/current/total',
  wyfTjJyrFx='/wyf/wyfTjJyrFx/current/chart',
  wyfTjZkFx="/wyf/wyfTjZkFx/current/chart",
  wyfTjFySh='/wyf/wyfTjFySh/current/chart',
  rzrcqs="/wyf/wyfTjZkFx/rzrcqs/list"

}
/**
 * 入住趋势
 * @param params
 */
export const  getRzrcqs= (params) => defHttp.get({ url: Api.rzrcqs, params }, { isTransformResponse: false });

/**
 * 总数统计-工作台用
 * @param params
 */
export const  getTotal= (params) => defHttp.get({ url: Api.total, params }, { isTransformResponse: false });

/**
 * 经营人分析-工作台用
 * @param params
 */
export const  getWyfTjJyrFx= (params) => defHttp.get({ url: Api.wyfTjJyrFx, params }, { isTransformResponse: false });

/**
 * 住客分析-工作台用
 * @param params
 */
export const  getWyfTjZkFx= (params) => defHttp.get({ url: Api.wyfTjZkFx, params }, { isTransformResponse: false });

/**
 * 日志统计信息
 * @param params
 */
export const getHousesList = (params) => defHttp.get({ url: Api.houses, params }, { isTransformResponse: false });
/**
 * 访问量信息
 * @param params
 */
export const getTenantsList = (params) => defHttp.get({ url: Api.tenants, params }, { isTransformResponse: false });
/**
 * 各区域房源统计-工作台用
 * /wyf/wyfTjFySh/current/chart
 * @param params
 */
export const getWyfTjFySh= (params) => defHttp.get({ url: Api.wyfTjFySh, params }, { isTransformResponse: false });
